package com.dataextend.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class ResultSegment implements Serializable {
    private boolean flag;
    private Integer code;
    private String message;
    private Object data;

    public ResultSegment() {
    }

    public ResultSegment(boolean flag, Integer code, String message, Object data) {
        super();
        this.flag = flag;
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResultSegment(boolean flag, Integer code, String message) {
        super();
        this.flag = flag;
        this.code = code;
        this.message = message;
    }
}
